package com.hxxy.wyp.petsLover.common.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Orders {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Long orderId;
    private LocalDateTime orderPurchaseTime;
    private LocalDateTime orderPaymentTime;
    private String shopCartId;
    private String orderUser;
    private Long orderPhone;
    private String orderStatus;
    private Double orderMoney;
    private String isEvoluted;
    private Long evolutedId;
    private String isSend;
    private Long userId;

    @TableField(exist = false)
    private List<ShopCart> shopCarts;

    @TableField(exist = false)
    private Evaluation evaluation;

}
